@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.id}">

            <div class="row">
                <div class="col-sm-12" id="itemsArea">
                    <div class="form-group">
                        <div class="col-sm-6 b-r">
                            <#input id="subject" name="主题" underline="true" value="${item.subject}" type="text" />
                            <#input id="showTime" name="直播时间" underline="true" value="${item.showTime}" type="text"
                                    clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>
                            <#select id="status" name="直播状态" underline="true">
                                @if(item.status == 0){
                                <option value="-1">请选择</option>
                                <option value="0" selected>休息中</option>
                                <option value="1">直播中</option>
                                <option value="2">已下架</option>
                                @}else if(item.status == 1){
                                <option value="-1">请选择</option>
                                <option value="0">休息中</option>
                                <option value="1" selected>直播中</option>
                                <option value="2">已下架</option>
                                @}else if(item.status == 2){
                                <option value="-1">请选择</option>
                                <option value="0">休息中</option>
                                <option value="1">直播中</option>
                                <option value="2" selected>已下架</option>
                                @}else{
                                <option value="-1" selected>请选择</option>
                                <option value="0">休息中</option>
                                <option value="1">直播中</option>
                                <option value="2">已下架</option>
                                @}
                            </#select>
                        </div>

                        <div class="col-sm-6">
                            <#input id="imgPath" name="图片地址" value="${item.imgPath}" type="text" underline="true" />
                            <#input id="showPath" name="直播地址" value="${item.showPath}" type="text"  underline="true" />
                            <#textarea id="content" name="内容" rows="3">${item.content}</#textarea>
                        </div>
                    </div>
                    <div class="hr-line-dashed"></div>
                </div>
            </div>
            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="LiveInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="LiveInfoDlg.close()"/>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/live/live_info.js"></script>
@}